//
//  PairChatWindowController.h
//  HiQ
//
//  Created by maxwell pang on 12-7-24.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "ChatDelegate.h"
#import "PairChat.h"
#import "MsgHistoryWindowController.h"

#define ChangeBackgroundImageNotification @"ChangeBackgroundImageNotification"

@interface PairChatWindowController : NSWindowController <ChatDelegate>
{
    Buddy *peerBuddy;
    Buddy *selfInfo;
    NSString *chatMessage;
    IBOutlet NSTextView *chatMsg;
    IBOutlet NSTextField *sendMsg;
    
    IBOutlet NSTextField *peerName;
    IBOutlet NSTextField *ownName;
    IBOutlet NSImageView *peerPohto;
    IBOutlet NSImageView *ownPohto;
}


@property BOOL isShow;
@property PairChat *pairChat;
@property Buddy *peerBuddy;
@property (nonatomic,strong) IBOutlet NSTextView *chatMsg;
@property (nonatomic,strong) IBOutlet NSTextField *sendMsg;

- (IBAction)send:(id)sender;
- (IBAction)sendFile:(id)sender;
- (IBAction)viewMsgHistory:(id)sender;

- (void) initPairChat:(Buddy*)buddy selfBuddyInfo:(Buddy*) selfInfo;
- (void) setNamePohtoAndBgImage:(NSString*)bgImageName;
-(void) changeBackgroundImage:(NSNotification*)notification;
@end
